﻿app.controller("ngContactController", function ($scope, $http, $location) {
    $scope.SendEmail = function (email) {
        $http.post("/api/Email/", email).success(function (data)
        {
            alert("Thanks for the email!");
            $location.path("/");
        }).error(function (data)
        {
            console.log("error" + data);
        });
    }
});